package com.zs.pig.cms.config;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;

/**
 * Redis配置文件
 *
 * @author liaoqiqi
 * @version 2014-6-17
 */
@Service
@Scope("singleton")
// @DisconfFile(filename = "app.properties")
public class MySqlConfig {

	
    // 代表连接地址
    private String url;

    // 代表连接port
    private String username;
    private String password;

    /**
     * 地址
     *
     * @return
     */
    @DisconfFileItem(name = "connection.url", associateField = "url")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    @DisconfFileItem(name = "connection.username", associateField = "username")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	 @DisconfFileItem(name = "connection.password", associateField = "password")
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
    
    
}